package com.baizhiedu.baizhiappsys.entity;

import java.util.Date;

public class User {
    private Integer id;
    /**
     * 注册时间
     */
    private Date addTime;
    /**
     * 头像
     */
    private String headImgUrl;
    /**
     * 信誉积分
     */
    private Integer integral;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 密码
     */
    private String password;
    /**
     * 手机号
     */
    private String phoneNumber;
    /**
     * 微信普通用户id
     */
    private String weiXinOpenId;
    /**
     * 性别
     */
    private String gender;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 打折 quan
     */
    private Integer quan;
    /**
     * 邀请码
     */
    private String invitationCode;
    /**
     * 白名单 0普通用户 1白名单用户
     */
    private Integer isPrivilege;
    /**
     * 是否注销用户删除 0未删除 1删除
     */
    private Integer deleteFlag;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", addTime=" + addTime +
                ", headImgUrl='" + headImgUrl + '\'' +
                ", integral=" + integral +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", weiXinOpenId='" + weiXinOpenId + '\'' +
                ", gender='" + gender + '\'' +
                ", email='" + email + '\'' +
                ", quan=" + quan +
                ", invitationCode='" + invitationCode + '\'' +
                ", isPrivilege=" + isPrivilege +
                ", deleteFlag=" + deleteFlag +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getWeiXinOpenId() {
        return weiXinOpenId;
    }

    public void setWeiXinOpenId(String weiXinOpenId) {
        this.weiXinOpenId = weiXinOpenId;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getQuan() {
        return quan;
    }

    public void setQuan(Integer quan) {
        this.quan = quan;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public Integer getIsPrivilege() {
        return isPrivilege;
    }

    public void setIsPrivilege(Integer isPrivilege) {
        this.isPrivilege = isPrivilege;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public User() {

    }

    public User(Integer id, Date addTime, String headImgUrl, Integer integral, String nickname, String password, String phoneNumber, String weiXinOpenId, String gender, String email, Integer quan, String invitationCode, Integer isPrivilege, Integer deleteFlag) {

        this.id = id;
        this.addTime = addTime;
        this.headImgUrl = headImgUrl;
        this.integral = integral;
        this.nickname = nickname;
        this.password = password;
        this.phoneNumber = phoneNumber;
        this.weiXinOpenId = weiXinOpenId;
        this.gender = gender;
        this.email = email;
        this.quan = quan;
        this.invitationCode = invitationCode;
        this.isPrivilege = isPrivilege;
        this.deleteFlag = deleteFlag;
    }
}
